package com.ruoyi.system.Fdongbei.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.Fdongbei.domain.TbHmdw;
import com.ruoyi.system.Fdongbei.mapper.dibang.TbHmdwMapper;
import com.ruoyi.system.Fdongbei.service.ITbHmdwService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * tb_heimingdan_1Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
@Service
@DataSource(value = DataSourceType.LY002_L)
public class TbHmdwServiceImpl implements ITbHmdwService
{
    @Autowired
    private TbHmdwMapper tbHmdwMapper;

    /**
     * 查询tb_heimingdan_1
     * 
     * @param id tb_heimingdan_1主键
     * @return tb_heimingdan_1
     */
    @Override
    public TbHmdw selectTbHmdById(Long id)
    {
        return tbHmdwMapper.selectTbHmdById(id);
    }

    /**
     * 查询tb_heimingdan_1列表
     * 
     * @param tbHmdw tb_heimingdan_1
     * @return tb_heimingdan_1
     */
    @Override
    public List<TbHmdw> selectTbHmdList(TbHmdw tbHmdw)
    {
        return tbHmdwMapper.selectTbHmdList(tbHmdw);
    }

    /**
     * 新增tb_heimingdan_1
     * 
     * @param tbHmd tb_heimingdan_1
     * @return 结果
     */
    @Override
    public int insertTbHmd(TbHmdw tbHmd)
    {
        return tbHmdwMapper.insertTbHmd(tbHmd);
    }

    /**
     * 修改tb_heimingdan_1
     * 
     * @param tbHmd tb_heimingdan_1
     * @return 结果
     */
    @Override
    public int updateTbHmd(TbHmdw tbHmd)
    {
        return tbHmdwMapper.updateTbHmd(tbHmd);
    }

    /**
     * 批量删除tb_heimingdan_1
     * 
     * @param ids 需要删除的tb_heimingdan_1主键
     * @return 结果
     */
    @Override
    public int deleteTbHmdByIds(Long[] ids)
    {
        return tbHmdwMapper.deleteTbHmdByIds(ids);
    }

    /**
     * 删除tb_heimingdan_1信息
     * 
     * @param id tb_heimingdan_1主键
     * @return 结果
     */
    @Override
    public int deleteTbHmdById(Long id)
    {
        return tbHmdwMapper.deleteTbHmdById(id);
    }
}
